// 交叉类型
// 多种类型的集合，联合对象将具有所联合类型的所有成员
interface People2 {
  age: number
  height: number
}
interface Man2 {
  sex: string
}
const xiaoman1 = (man: People2 & Man2) => {
  console.log(man.age)
  console.log(man.height)
  console.log(man.sex)
}
xiaoman1({ age: 18, height: 180, sex: 'male' })
